package com.ruoyi.wms.domain.dto;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 增加商品库存响应DTO
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
@ApiModel("增加商品库存响应")
public class InventoryIncreaseResponse
{
    /** 库存记录ID */
    @ApiModelProperty(value = "库存记录ID", example = "10001")
    private Long inventoryId;

    /** 操作前数量 */
    @ApiModelProperty(value = "操作前数量", example = "50.000")
    private BigDecimal beforeQty;

    /** 增加数量 */
    @ApiModelProperty(value = "增加数量", example = "100.000")
    private BigDecimal increaseQty;

    /** 操作后数量 */
    @ApiModelProperty(value = "操作后数量", example = "150.000")
    private BigDecimal afterQty;

    /** 操作时间 */
    @ApiModelProperty(value = "操作时间", example = "2024-01-01 10:30:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date operationTime;

    /** 操作日志ID */
    @ApiModelProperty(value = "操作日志ID", example = "20001")
    private Long logId;

    public InventoryIncreaseResponse() {
    }

    public InventoryIncreaseResponse(Long inventoryId, BigDecimal beforeQty, BigDecimal increaseQty, 
                                   BigDecimal afterQty, Date operationTime, Long logId) {
        this.inventoryId = inventoryId;
        this.beforeQty = beforeQty;
        this.increaseQty = increaseQty;
        this.afterQty = afterQty;
        this.operationTime = operationTime;
        this.logId = logId;
    }

    public Long getInventoryId() {
        return inventoryId;
    }

    public void setInventoryId(Long inventoryId) {
        this.inventoryId = inventoryId;
    }

    public BigDecimal getBeforeQty() {
        return beforeQty;
    }

    public void setBeforeQty(BigDecimal beforeQty) {
        this.beforeQty = beforeQty;
    }

    public BigDecimal getIncreaseQty() {
        return increaseQty;
    }

    public void setIncreaseQty(BigDecimal increaseQty) {
        this.increaseQty = increaseQty;
    }

    public BigDecimal getAfterQty() {
        return afterQty;
    }

    public void setAfterQty(BigDecimal afterQty) {
        this.afterQty = afterQty;
    }

    public Date getOperationTime() {
        return operationTime;
    }

    public void setOperationTime(Date operationTime) {
        this.operationTime = operationTime;
    }

    public Long getLogId() {
        return logId;
    }

    public void setLogId(Long logId) {
        this.logId = logId;
    }

    @Override
    public String toString() {
        return "InventoryIncreaseResponse{" +
                "inventoryId=" + inventoryId +
                ", beforeQty=" + beforeQty +
                ", increaseQty=" + increaseQty +
                ", afterQty=" + afterQty +
                ", operationTime=" + operationTime +
                ", logId=" + logId +
                '}';
    }
}